package com.link.base.base.contract.dao.mybatis.mapper;

import com.link.base.base.contract.model.ModContract;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 价格模具合同
 *
 * @author 阳晓琳
 * @date 2020-10-13 14:08:15
 */
public interface ModContractMapper extends BasicMapper<ModContract> {

    /**
     * 根据合同编码查询当年该客户合同记录
     * @param acctCode
     * @return
     */
    List<ModContract> queryByContractCode(String acctCode, String contractType);

    /**
     * 根据价格合同ID，查找本价格合同的所有订单合同的所有项目ID
     * @param querPri
     * @return
     */
    List<ModContract> queryProjectIds(ModContract querPri);

    /**
     * 变更合同状态为新建
     * @param entity
     * @throws Exception
     */
    void changeContractStatusToNew(ModContract entity) throws Exception;
}
